import { createApp } from "vue";
import App from "./App.vue";

import ZIcon from "@z-ui/components/icon";
import ZTree from "@z-ui/components/tree";
import ZVirtualScroll from "@z-ui/components/virtual-scroll";
import ZCheckbox from "@z-ui/components/checkbox";
import ZButton from "@z-ui/components/button";
import ZInput from "@z-ui/components/input";
import ZForm from "@z-ui/components/form";
import ZFormItem from "@z-ui/components/form-item";
import ZUpload from "@z-ui/components/upload";

import "@z-ui/theme-chalk/src/index.scss";

const plugins = [
  ZIcon,
  ZTree,
  ZVirtualScroll,
  ZCheckbox,
  ZButton,
  ZInput,
  ZForm,
  ZFormItem,
  ZUpload,
];

const app = createApp(App);
plugins.forEach((plugin) => {
  app.use(plugin);
});
app.mount("#app");
